#include<iostream>
#include<string>
#include<map>
#include"headers/comando.h"
#include"headers/cmd-for.h"

int main () {
	map<string,string> memoria;
	memoria.insert(pair<string,string>("i", "5"));
	Cmd_For *cmd = new Cmd_For(&memoria, -1, "i", "<", "5", 0);
	cmd->set_linha_saida(1);
	cout<<cmd->executa()<<endl;
	map<string,string>::iterator it=memoria.find("i");
	if (it != memoria.end()) {
		it->second="0";
	}
	cout<<cmd->executa()<<endl;
}
